package xyz.shenmegui.foodcheckserver.service;

import org.springframework.stereotype.Service;
import xyz.shenmegui.foodcheckserver.DO.Compound;

import java.util.List;

@Service
public interface CompoundService {

    List<Compound> selectByName(String name);

    List<Compound> selectByEnName(String enName);

    Compound selectByNameE(String name);

    Compound selectByEnNameE(String enName);

    Compound selectById(String id);

    List<Compound> selectByIds(String ids);

    int insert(Compound compound);

    List<Compound> selectTop10();

    int updateCompounds(List<Compound> compounds);
}
